#!/bin/bash
time=`date "+%F %X"`
echo "${time} windows98dukey start pid=$$" >> windows98dukey_logs.txt
uri='ws://139.159.218.3:9003'
echo "======================================" >> windows98dukey_logs.txt
jct windows-robot-key $uri -n windows98dukey -monitor_tcp_port 9012 >> windows98dukey_logs.txt 2>&1 &
if [ $? == 0 ]
then 
    echo "${time} windows98dukey started pid=$!" >> windows98dukey_logs.txt
else
    echo "${time} windows98dukey start fail" >> windows98dukey_logs.txt
fi